<include file="Common@header:header"/>
<script src="__PUBLIC__/static/jquery-1.10.2.min.js"></script>
<div id="login">
    <div class="login_title">用户注册</div>
    <ul class="login_form">
        <form action="{{:U('Home/User/register')}}" method="POST">
            <li>
                <input type="text" name="username" id="account" class="t_input" title="*请填写用户名"/>
                <span class="alert">*请填写用户名</span>
            </li>
            <li>
                <input type="password" name="password" id="password" class="t_input password" title="*请输入密码"/>
                <span class="alert">*请输入密码</span>
            </li>
            <li>
                <input type="password" name="repassword" id="repassword" class="t_input password" title="*请输入密码"/>
                <span class="alert">*请输入确认密码</span>
            </li>
            <li>
                <input type="text" name="email" id="email" class="t_input password" title="*请输入邮箱地址"/>
                <span class="alert">*请输入邮箱地址</span>
            </li>
            <li>
                <input type="text" name="verify" id="verify" class="t_input" title="*请输入验证码"/>
                <span class="alert">*请输入验证码</span>
                <span class="pic"><img id="verifyImg" SRC="{{:U('Home/User/verify')}}" onClick="changeVerify()"
                                       border="0"
                                       alt="点击刷新验证码" style="cursor:pointer" align="absmiddle"></span>
            </li>
            <li>
                <input type="submit" class="s_input" value="注册" id="login_button"/>
                <input type="button" class="s_input" value="返回首页" onclick="window.location.href='/';"
                       style="margin-left:25px;"/>
            </li>
        </form>
    </ul>
</div>
<include file="Common@footer:footer"/>
<script>
    var verifyImgUrl = "{{:U('Home/User/verify')}}";
    function changeVerify() {
        var timenow = new Date().getTime();
        document.getElementById('verifyImg').src = verifyImgUrl + "?" + timenow;
    }
</script>